package dbtools.innertables;

import dbtools.structures.DBFieldInt;
import dbtools.structures.DBFieldLong;
import dbtools.structures.DBFieldText;
import dbtools.structures.DBKeyElement;
import dbtools.structures.DBTable;
import dbtools.structures.DBUniqueKey;

public class DBCounters extends DBTable {

	private static final long serialVersionUID = 1L;
	
	public DBFieldText counterName = new DBFieldText(30);
	public DBFieldInt intValue = new DBFieldInt();
	public DBFieldLong longValue = new DBFieldLong();

	public DBUniqueKey key = new DBUniqueKey("JDBTOOLS_COUNTERS_KEY", new DBKeyElement(counterName,ASC));

	public static Object[] buildKey(String counterName){
		return new Object[]{counterName};
	}
	
	@Override
	public String getTableName() {
		return "JDBTOOLS_COUNTERS";
	}

}
